<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>获取select的值</title>
</head>
<body>
<div id="d" class="d">
    1、switch判断练习<br><br>
    弹出问候 分析：<br>
    <input type="text" class="form-control" placeholder="姓名" />
    <select class="form-control">
        <option value="0">性别</option>
        <option value="1">男</option>
        <option value="2">女</option>
    </select>
    <button class="btn btn-info">问候</button><br>
</div>
</body>
</html>